package logic

import (
	"context"
	"self/common/proto/user"
	"self/service/server"
)

type ServerUser struct {
	user.UnimplementedUserServer
}

func (s ServerUser) Register(ctx context.Context, in *user.RegisterReq) (*user.RegisterResp, error) {
	register, err := server.Registers(in)
	if err != nil {
		return nil, err
	}
	return register, nil
}
func (s ServerUser) UserList(ctx context.Context, in *user.UserListReq) (*user.UserListResp, error) {
	list, err := server.UserList(in)
	if err != nil {
		return nil, err
	}
	return list, nil
}
